package simtester.server

import java.util.Date;
import org.bson.types.ObjectId

class User {
    //static hasMany = [team:Team]
    static belongsTo = [team: Team]

    String username
    String password
    Date dateCreated
    Date lastUpdated
	Boolean adminRole = false

    static constraints = {
        username size: 3..25, blank: false, unique: true
    }
    
    static mapping = {
        username index: true, indexAttributes: [unique: true, dropDups: true]
    }
	
	
}
